package com.hae.mail.order.api;

import com.hae.mail.order.model.OrderDao;
import org.springframework.web.bind.annotation.RequestMapping;

public interface OrderService {

    @RequestMapping("/getOrdersByUserName")
    public OrderDao getOrdersByUserName(String userName);

    @RequestMapping("/randomOrder")
    public OrderDao randomOrder();

    @RequestMapping("/getOrdersByUserNameForHystrix")
    public OrderDao getOrdersByUserNameForHystrix(String userName);

    @RequestMapping("/getOrdersByUserNameForHystrixs")
    public OrderDao getOrdersByUserNameForHystrixs(String userName);

    @RequestMapping("/randomOrderForHystrix")
    public OrderDao randomOrderForHystrix();

    @RequestMapping("/orderInfo")
    public String orderInfo();
}
